package com.tbb.app.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "消息VO")
public class MessageAdminVO {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("发送人昵称")
    private String sendName;

    @ApiModelProperty("发送人账号")
    private String sendAccount;

    @ApiModelProperty("接收人昵称")
    private String receiveName;

    @ApiModelProperty("接收人账号")
    private String receiveAccount;

    @ApiModelProperty("消息正文")
    private String text;

    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

}
